/* NOTICE
 
    Jim - the Java Image Manager, copyright (c) 2005 - 2007 Grant Gardner 
 
    Jim is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    Jim is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
  
    In addition, as a special exception, you are permitted to link this code
    with the 3rd party libraries required to compile this file and to
    distribute a linked combination including them. You must obey the
    GNU General Public License in all respects for all of the code except for
    those 3rd party libraries that are licenced under terms incompatible with the
    GNU General Public License.  
 
 
 NOTICE */

package au.com.lastweekend.jim.io.exif.makernote.minolta;

import java.util.HashMap;
import java.util.Map;

import au.com.lastweekend.jim.io.metadata.Directory;

/**
 * 
 * Directory containing expansion of Minolta camera settings
 * 
 * @version $Id: MinoltaCameraSettingsDirectory.java,v 1.3 2006/02/20 12:21:10 ggardner Exp $
 * @author <a href="mailto:grant@lastweekend.com.au"> <Grant Gardner> </a>
 */
public class MinoltaCameraSettingsDirectory extends Directory {

    public static final int TAG_DATA_IMPRINT = 3125;
    public static final int TAG_COLOUR_PROFILE = 3124;
    public static final int TAG_DEC_POSITION = 3123;
    public static final int TAG_FOCUS_AREA = 3122;
    public static final int TAG_FOCUS_MODE = 3121;
    public static final int TAG_WIDE_FOCUS_ZONE = 3120;
    public static final int TAG_BRIGHTNESS_VALUE = 3117;
    public static final int TAG_INTERNAL_FLASH = 3116;
    public static final int TAG_BW_FILTER = 3115;
    public static final int TAG_COLOUR_FILTER = 3114;
    public static final int TAG_FOLDER_NAME = 3112;
    public static final int TAG_INTERVAL_MODE = 3111;
    public static final int TAG_COLOUR_MODE = 3113;
    public static final int TAG_ISO_SETTING = 3109;
    public static final int TAG_FLASH_COMPENSATION = 3108;
    public static final int TAG_SUBJECT_PROGRAM = 3107;
    public static final int TAG_SHARPNESS = 3106;
    public static final int TAG_CONTRAST = 3105;
    public static final int TAG_SATURATION = 3104;
    public static final int TAG_TIME = 3095;
    public static final int TAG_DATE = 3094;
    public static final int TAG_FOCUS_DISTANCE = 3092;
    public static final int TAG_FOCAL_LENGTH = 3091;
    public static final int TAG_BRACKET_STEP = 3087;
    public static final int TAG_EXPOSURE_COMPENSATION = 3086;
    public static final int TAG_DIGITAL_ZOOM = 3085;
    public static final int TAG_WHITE_BALANCE_BLUE = 3103;
    public static final int TAG_WHITE_BALANCE_GREEN = 3102;
    public static final int TAG_WHITE_BALANCE_RED = 3101;
    public static final int TAG_FILE_NUMBER_MEMORY = 3099;
    public static final int TAG_MACRO_MODE = 3084;
    public static final int TAG_MAX_APERTURE = 3096;
    public static final int TAG_APERTURE = 3083;
    public static final int TAG_SHUTTER_SPEED = 3082;
    public static final int TAG_FILM_SPEED = 3081;
    public static final int TAG_METERING_MODE = 3080;
    public static final int TAG_DRIVE_MODE = 3079;
    public static final int TAG_IMAGE_QUALITY = 3078;
    public static final int TAG_CAMERA_MODEL = 3110;
    public static final int TAG_IMAGE_SIZE = 3077;
    public static final int TAG_WHITE_BALANCE = 3076;
    public static final int TAG_FLASH_MODE = 3075;
    public static final int TAG_EXPOSURE_MODE = 3074;
    private static final HashMap<Integer, String> TAG_NAME_MAP = new HashMap<Integer, String>();
    static {
        // Fake tags.
        TAG_NAME_MAP.put(3073, "MLT01");
        TAG_NAME_MAP.put(TAG_EXPOSURE_MODE, "Exposure Mode");
        TAG_NAME_MAP.put(TAG_FLASH_MODE, "Flash Mode");
        TAG_NAME_MAP.put(TAG_WHITE_BALANCE, "White Balance");
        TAG_NAME_MAP.put(TAG_IMAGE_SIZE, "Image Size");
        TAG_NAME_MAP.put(TAG_IMAGE_QUALITY, "Image Quality");
        TAG_NAME_MAP.put(TAG_DRIVE_MODE, "Drive Mode");
        TAG_NAME_MAP.put(TAG_METERING_MODE, "Metering Mode");
        TAG_NAME_MAP.put(TAG_FILM_SPEED, "Film Speed");
        TAG_NAME_MAP.put(TAG_SHUTTER_SPEED, "Shutter Speed");
        TAG_NAME_MAP.put(TAG_APERTURE, "Aperture");
        TAG_NAME_MAP.put(TAG_MACRO_MODE, "Macro Mode");
        TAG_NAME_MAP.put(TAG_DIGITAL_ZOOM, "Digital Zoom");
        TAG_NAME_MAP.put(TAG_EXPOSURE_COMPENSATION, "Exposure Compensation");
        TAG_NAME_MAP.put(TAG_BRACKET_STEP, "Bracket Step");
        TAG_NAME_MAP.put(3088, "MLT16");
        TAG_NAME_MAP.put(3089, "Interval Length");
        TAG_NAME_MAP.put(3090, "Interval Number");
        TAG_NAME_MAP.put(TAG_FOCAL_LENGTH, "Focal Length");
        TAG_NAME_MAP.put(TAG_FOCUS_DISTANCE, "Focus Distance");
        TAG_NAME_MAP.put(3093, "Flash Fired");
        TAG_NAME_MAP.put(TAG_DATE, "Date");
        TAG_NAME_MAP.put(TAG_TIME, "Time");
        TAG_NAME_MAP.put(TAG_MAX_APERTURE, "Max Aperture");
        TAG_NAME_MAP.put(3097, "MLT25");
        TAG_NAME_MAP.put(3098, "MLT26");
        TAG_NAME_MAP.put(TAG_FILE_NUMBER_MEMORY, "File Number Memory");
        TAG_NAME_MAP.put(3100, "Last File Number");
        TAG_NAME_MAP.put(TAG_WHITE_BALANCE_RED, "White Balance Red");
        TAG_NAME_MAP.put(TAG_WHITE_BALANCE_GREEN, "White Balance Green");
        TAG_NAME_MAP.put(TAG_WHITE_BALANCE_BLUE, "White Balance Blue");
        TAG_NAME_MAP.put(TAG_SATURATION, "Saturation");
        TAG_NAME_MAP.put(TAG_CONTRAST, "Contrast");
        TAG_NAME_MAP.put(TAG_SHARPNESS, "Sharpness");
        TAG_NAME_MAP.put(TAG_SUBJECT_PROGRAM, "Subject Program");
        TAG_NAME_MAP.put(TAG_FLASH_COMPENSATION, "Flash Compensation");
        TAG_NAME_MAP.put(TAG_ISO_SETTING, "ISO Setting");
        TAG_NAME_MAP.put(TAG_CAMERA_MODEL, "Camera Model");
        TAG_NAME_MAP.put(TAG_INTERVAL_MODE, "Interval Mode");
        TAG_NAME_MAP.put(TAG_FOLDER_NAME, "Folder Name");
        TAG_NAME_MAP.put(TAG_COLOUR_MODE, "Color Mode");
        TAG_NAME_MAP.put(TAG_COLOUR_FILTER, "Color Filter");
        TAG_NAME_MAP.put(TAG_BW_FILTER, "BW Filter");
        TAG_NAME_MAP.put(TAG_INTERNAL_FLASH, "Internal Flash");
        TAG_NAME_MAP.put(TAG_BRIGHTNESS_VALUE, "Brightness Value");
        TAG_NAME_MAP.put(3118, "Spot Focus PointX");
        TAG_NAME_MAP.put(3119, "Spot Focus PointY");
        TAG_NAME_MAP.put(TAG_WIDE_FOCUS_ZONE, "Wide Focus Zone");
        TAG_NAME_MAP.put(TAG_FOCUS_MODE, "Focus Mode");
        TAG_NAME_MAP.put(TAG_FOCUS_AREA, "Focus Area");
        TAG_NAME_MAP.put(TAG_DEC_POSITION, "DEC Position");
        TAG_NAME_MAP.put(TAG_COLOUR_PROFILE, "Color Profile");
        TAG_NAME_MAP.put(TAG_DATA_IMPRINT, "Data Imprint");
        TAG_NAME_MAP.put(3126, "MLT54");
        TAG_NAME_MAP.put(3127, "MLT55");
        TAG_NAME_MAP.put(3128, "MLT56");
        TAG_NAME_MAP.put(3129, "MLT57");
    }

    /**
     * @param parent
     */
    public MinoltaCameraSettingsDirectory(Directory parent) {

        super(parent);
        setDescriptor(new MinoltaCameraSettingsDescriptor(this));
    }

    /**
     * 
     * @see au.com.lastweekend.jim.io.metadata.Directory#getName()
     */
    @Override
    public String getName() {

        return "Minolta Settings";
    }

    /**
     * 
     * @see au.com.lastweekend.jim.io.metadata.Directory#getTagNameMap()
     */
    @Override
    protected Map<Integer, String> getTagNameMap() {

        return TAG_NAME_MAP;
    }

}